import request from '@/utils/request'

// 是否手机 sfsj 0pc 1手机
export function getPriorProcessGate(param) {
  return request({
    url: `/yxdd/processGate/list`,
    method: 'post',
    data: param
  })
}

export function addPriorProcessGate(param) {
  return request({
    url: `/yxdd/processGate/add`,
    method: 'post',
    data: param
  })
}

//优先过闸添加前校验是否应办理过
/**
 * {
 *   cmch: '',
 *   czsid: 0,
 *   djh: ''
 * }
 *
 * 返回{ 看 data =1 通过 ,0 不通过, message:'' 不通过时原因可能不一样, data = 0 时,可以显示message  }
* */
export function processGateValidate(params){
  return request({
    url:'/yxdd/processGate/processGateValidate',
    method:'post',
    data:params
  })
}

//计算优先过闸费
// cblx czsid jfjs yxgzlyid
// add cblxid 2023-5-30
export function  calcProcessGateFee(params){
  return request({
    url:'/yxdd/processGate/calcProcessGateFy',
    method: 'post',
    data: params
  })
}


export function getPriorProcessGateDetail(param) {
  return request({
    url: `/yxdd/processGate/detail`,
    method: 'post',
    data: param
  })
}

// yxgzid  优先过闸id  ,  cljl  取消原因
export function cancelPriorProcessGate(param) {
  return request({
    url: `/yxdd/processGate/cancel`,
    method: 'post',
    data: param
  })
}

// pc 端 优先过闸 处理
export function processPriorProcessGate(param) {
  return request({
    url: `/yxdd/processGate/process`,
    method: 'post',
    data: param
  })
}
// 手机端优先过闸申请
export function processPriorProcessGateForMobile(param) {
  return request({
    url: `/yxdd/processGate/manage`,
    method: 'post',
    data: param
  })
}




